package main.Concurrent.Iteration;

import java.io.Serializable;

/**
 * Internally used to notify the runner that an indivial operation is done
 * 
 * @author Jared Hance
 */
public class IterationOperationDoneMessage<R> implements Serializable {
    private int index;
    private R result;
    
    public IterationOperationDoneMessage(int index, R result) {
        this.index = index;
        this.result = result;
    }
    
    public int getIndex() {
        return this.index;
    }
    
    public R getResult() {
        return this.result;
    }
}
